<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>SpringBoot模版渲染</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
</head>
<body>
<h1 th:text="'Authorize ' + ${oauth2Req.applicationName}"></h1>
<hr/>
<b>Note: At this point the user has already been logged-in.</b>
<hr/>
<p>This application would like to have authorization to access your data.</p>

<ul th:each="desScope : ${oauth2Req.scopeDescriptions}">
   <li th:text="${desScope}"></li>
</ul>

<form action="#" th:action="@{/mock-client/authorize}" th:object="${oauth2Req}" method="post" name="authorize">
    <input type="hidden" name="clientId" th:field="*{clientId}">
    <input type="hidden" name="responseType" th:field="*{responseType}">
    <input type="hidden" name="scope" th:field="*{scope}">
    <input type="hidden" name="state" th:field="*{state}">
    <input type="submit" value="Authorize">
</form>


</body>
</html>